package com.iraeta.service.basic;

import com.alibaba.fastjson.JSONArray;
import com.iraeta.entity.main.Plan;
import com.iraeta.entity.main.vo.PlanVo;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

public interface PlanService {
    public List<PlanVo> pagePlan(String title);
    public List<PlanVo> PageSelfPlan(String title, Integer userId);
    public List<HashMap<String, Object>> getPlanCangKu(Integer planId);
    public Plan getPlan(Integer planId);
    public void addPlan(Plan plan, JSONArray cangKuJSONArray);
    public void updatePlan(Plan plan, JSONArray cangKuJSONArray);
    public void deletePlan(Integer planId);
    public void faBuPlan(Integer planId);
    public List<Plan> listSelfPlan(Integer userId);     //盘点记录填报时，下拉框选择

    /*统计用*/
    public List<HashMap<String, Object>> getPlanCangKuOnce(Integer planId);
    public List<HashMap<String, Object>> getPlanCangKuZq(Integer planId, Date beginDate, Date endDate );

    /*定时任务*/
    /*根据周期和截止日期， 自动关闭盘点计划*/
    public void updatePlanStatus();
    public void planRemind();
}
